<template>
	<view class="content">
		<view class="zonghegedan">
			<view class="zonghegedantitle">
				播客
			</view>
			<view class="zonghe-gedancotent" v-for="(item,index) in radio" :key="item.id">
				<image :src="item.picUrl" mode=""></image>
				<view class="radio-msg">
					<text>{{item.name}}</text>
					<view class="radio-text">
						<text>{{item.programCount}}个声音,</text>
						<text style="margin-left: 5px;">by {{item.dj.nickname}},</text>
						<text style="margin-left: 5rpx;">播放{{item.playCount | count}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props: ['radio'],
		filters: {
			count(v) {
				return v > 10000 ? (v / 10000).toFixed(1) + '万次' : v + '次'
			},
		}
	}
</script>
<style lang="scss" scoped>
	//播单
	.radio-msg {
		display: flex;
	}

	.radio-text {
		display: flex;
		align-items: center;
		color: #8F8F8F;
		font-size: 20rpx;
	}

	.zonghegedan {
		display: flex;
		flex-direction: column;
		padding: 30rpx 0 0 0;
		box-sizing: border-box;
		border-bottom: 1px solid #E5E5E5;

		.zonghegedantitle {
			border-top-left-radius: 10px;
			border-top-right-radius: 10px;
			background-color: #fff;
			padding: 30rpx;
			font-weight: 600;
			font-size: 17px;
		}

		.zonghe-gedancotent {
			padding: 10rpx 30rpx;
			background-color: #fff;
			display: flex;

			image {
				width: 100rpx;
				height: 100rpx;
				border-radius: 10px;
			}

			>view {
				display: flex;
				flex-direction: column;
				margin-left: 20rpx;
				justify-content: center;
			}
		}
	}
</style>
